package library.and.xps.com.step.m.model;

import io.realm.RealmList;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
import io.realm.annotations.RealmClass;

@RealmClass
public class Team extends RealmObject {
    @PrimaryKey
    String teamid;
    String tname;
    String enterprise;
    String enterpriseid;
    String type;
    String address;
    String description;
    String creater;
    String createnickname;
    String createtime;
    String marker;
    String email;
    String intname;//在团队中的名字
    int role;
    boolean passWordEnable;//是否启用密码

    public boolean isPassWordEnable() {
        return passWordEnable;
    }

    public void setPassWordEnable(boolean passWordEnable) {
        this.passWordEnable = passWordEnable;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    RealmList<Department> departments = new RealmList<>();

    public String getMarker() {
        return marker;
    }

    public void setMarker(String marker) {
        this.marker = marker;
    }

    public RealmList<Department> getDepartments() {
        return departments;
    }

    public void setDepartments(RealmList<Department> departments) {
        this.departments = departments;
    }

    public String getTId() {
        return teamid;
    }

    public void setTeamId(String teamId) {
        this.teamid = teamId;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getIntname() {
        return intname;
    }

    public void setIntname(String intname) {
        this.intname = intname;
    }

    public String getEnterprise() {
        return enterprise;
    }

    public void setEnterprise(String enterprise) {
        this.enterprise = enterprise;
    }

    public String getEnterpriseid() {
        return enterpriseid;
    }

    public void setEnterpriseid(String enterpriseid) {
        this.enterpriseid = enterpriseid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCreater() {
        return creater;
    }

    public String getTeamid() {
        return teamid;
    }

    public void setTeamid(String teamid) {
        this.teamid = teamid;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getCreatenickname() {
        return createnickname;
    }

    public void setCreatenickname(String createnickname) {
        this.createnickname = createnickname;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "Team{" +
                "teamId='" + teamid + '\'' +
                ", tname='" + tname + '\'' +
                ", enterprise='" + enterprise + '\'' +
                ", enterpriseid='" + enterpriseid + '\'' +
                ", type='" + type + '\'' +
                ", address='" + address + '\'' +
                ", description='" + description + '\'' +
                ", creater='" + creater + '\'' +
                ", createnickname='" + createnickname + '\'' +
                ", createtime='" + createtime + '\'' +
                ", marker='" + marker + '\'' +
                ", email='" + email + '\'' +
                ", departments=" + departments +
                ", role=" + role +
                ", teamid=" + teamid +
                ", passWordEnable=" + passWordEnable +
                '}';
    }
}
